package com.fdb.efp.nls.service.impl;

import com.fdb.basic.framework.core.base.FrameworkService;
import com.fdb.efp.nls.service.dao.LoanCompensationStatementEnjoyTempDao;
import com.fdb.efp.nls.service.domain.LoanCompensationStatementEnjoyTemp;
import com.fdb.efp.nls.service.facade.LoanCompensationStatementEnjoyTempService;
import com.fdb.efp.nls.service.vo.LoanCompensationStatementEnjoyTempVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 
 * 百度代偿清单尊享临时表
 * 
 * @author liyakui
 * @since 2019年1月7日 下午8:13:49
 * @version 1.0
 */
@Service("loanCompensationStatementEnjoyTempService")
public class LoanCompensationStatementEnjoyTempServiceImpl implements LoanCompensationStatementEnjoyTempService, FrameworkService {

	Logger logger = LoggerFactory.getLogger(LoanCompensationStatementEnjoyTempServiceImpl.class);
	@Autowired
	private LoanCompensationStatementEnjoyTempDao loanCompensationStatementEnjoyTempDao;



	@SuppressWarnings("unchecked")
	@Override
	public List<LoanCompensationStatementEnjoyTempVo> queryloanCompensationStatementEnjoyTemp(
			LoanCompensationStatementEnjoyTempVo loanCompensationStatementEnjoyTempVo) {
		logger.info("查询数据开始！参数为：" + loanCompensationStatementEnjoyTempVo);
		List<LoanCompensationStatementEnjoyTempVo> list = null;
		try {
			LoanCompensationStatementEnjoyTemp loanCompensationStatementEnjoyTemp = new LoanCompensationStatementEnjoyTemp();
			beanCopy(loanCompensationStatementEnjoyTempVo, loanCompensationStatementEnjoyTemp);
			List<LoanCompensationStatementEnjoyTemp> loanCompensationStatementEnjoyTemps = loanCompensationStatementEnjoyTempDao
					.queryLoanCompensationStatementEnjoyTemp(loanCompensationStatementEnjoyTemp);
			list = (List<LoanCompensationStatementEnjoyTempVo>) beansCopy(loanCompensationStatementEnjoyTemps,
					loanCompensationStatementEnjoyTempVo.getClass());
			logger.info("查询数据成功！结果为：" + list);
		} catch (Exception e) {
			e.printStackTrace();
			logger.debug("查询异常！" + e.getMessage());
		}

		return list;
	}

	@Override
	public int insert(LoanCompensationStatementEnjoyTempVo loanCompensationStatementEnjoyTempVo) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insertSelective(LoanCompensationStatementEnjoyTempVo loanCompensationStatementEnjoyTempVo) {
		// TODO Auto-generated method stub
		return 0;
	}
}
